package com.koron.housing.staff.bean.vo;

import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.format.DateTimeFormat;
import com.koron.housing.staff.bean.po.HousingStaff;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.Date;

/**
 * @author jzp
 * @since 2022/3/10
 */
@EqualsAndHashCode(callSuper = true)
@Data
@ApiModel(value = "租户列表信息", description = "HousingStaffVO")
public class HousingStaffVO extends HousingStaff {

    @DateTimeFormat("yyyy-MM-dd HH:mm")
    @ExcelProperty(value = "最新入住时间", index = 8)
    @ApiModelProperty("入住日期")
    private Date intoDate;

    @DateTimeFormat("yyyy-MM-dd HH:mm")
    @ExcelProperty(value = "最新退租时间", index = 9)
    @ApiModelProperty("退租日期")
    private Date outDate;

    @DateTimeFormat("yyyy-MM-dd")
    @ExcelProperty(value = "最新租赁合同开始日期", index = 10)
    @ApiModelProperty("租赁合同开始日期")
    private Date leaseStartTime;

    @DateTimeFormat("yyyy-MM-dd")
    @ExcelProperty(value = "最新租赁合同结束日期", index = 11)
    @ApiModelProperty("租赁合同结束日期")
    private Date leaseEndTime;

    @ExcelProperty(value = "地址", index = 6)
    @ApiModelProperty("地址")
    private String address;

    @ExcelProperty(value = "房号", index = 7)
    @ApiModelProperty("房号")
    private String roomNum;

}
